package executor.size;

import org.junit.Test;

public class Demo {

    @Test
    public void demo(){
        System.out.println(Runtime.getRuntime().availableProcessors());
        //计算密集型的线程数量为Runtime.getRuntime().availableProcessors() +1


    }
}
